package com.boyunv.interpreter.example02;
/*
 *@description
 *  数字表达式
 *@author boyunv
 *@create 2023/9/10 8:38
 *@version 1.0
 */

public class NumberExpression implements Expression{
    
    private long number;
    
    public NumberExpression(long number) {
        this.number = number;
    }
    
    public NumberExpression(String number) {
        this.number = Long.parseLong(number);
    }
    
 
    
    @Override
    public long interpreter() {
        return this.number;
    }
    
    @Override
    public long interpreter(String number) {
        return 0;
    }
}
